#include "list.h"
#include "vector.h"
#include "ReverseIterator.h"


//void test1()
//{
//	my_vector::vector<int> v;
//	v.push_back(1);
//	v.push_back(2);
//	v.push_back(3);
//	v.push_back(4);
//	v.push_back(5);
//	v.push_back(6);
//
//	my_reverse_iterator::Reverse_Iterator rit = v.rbegin();
//}


void test2()
{
	my_list::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);
	lt.push_back(6);
	lt.push_back(7);

	my_list::list<int>::reverse_iterator rit = lt.rbegin();
	while (rit != lt.rend())
	{
		std::cout << *rit << " ";
		++rit;
	}
	std::cout << " ";
}

void test3()
{
	my_vector::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	v.push_back(6);
	v.push_back(7);

	my_vector::vector<int>::reverse_iterator rit = v.rbegin();
	while (rit != v.rend())
	{
		std::cout << *rit << " ";
		++rit;
	}
	std::cout << " ";

}

int main()
{
	test3();
	return 0;
}